package com.qjd.girl.repository;

import com.qjd.girl.domain.Girl;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by qiangjindong
 * 2018-08-03 10:21
 */
public interface GirlRepository extends JpaRepository<Girl, Integer> {
    /**
     * 通过年龄查询
     * @param age 年龄
     * @return 返回查询列表
     */
    List<Girl> findByAge(Integer age);
}
